<!DOCTYPE html>
<html>
<head>
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>弹出框-增加入参</title>
    <link href="/static/css/controls.css" rel="stylesheet">
    <link href="/static/css/engine.css" rel="stylesheet">
    <script src="/bower_components/requirejs/require.js" data-main="/static/app.js"
            data-bootstrap-modules="'system2/unitcases/ParamController'"></script>
</head>
<body ng-controller="ParamController" style="height: auto">
<div class="engine-popup" ng-cloak>
    <form name="ParamForm" g-validator="UnitCaseParam_Save" data-invalid-msg="tooltipMessenger">
        <input type="hidden" name="id" ng-model="unitCaseParam.id"/>
        <input type="hidden" name="parentId" ng-model="unitCaseParam.parentId"/>
        <div class="attribute-form-group">
            <div class="attribute-form-group-l">参数类型：</div>
            <div class="attribute-form-group-r">
                <select id="dataType" name="dataType" ng-model="unitCaseParam.dataType">
                    <option value="Integer">整型</option>
                    <option value="Double">浮点型</option>
                    <option value="String">字符串</option>
                    <option value="Boolean">布尔型</option>
                    <option value="Date">时间</option>
                    <option value="Object">对象类型</option>
                    <option value="List">数组类型</option>
                    <option value="Long">长整型</option>
                </select>
            </div>
            <div class="clear"></div>
        </div>
        <div class="attribute-form-group">
            <div class="attribute-form-group-l">参数名：</div>
            <div class="attribute-form-group-r"><input type="text" name="paramName"
                                                       ng-model="unitCaseParam.paramName"></div>
            <div class="clear"></div>
        </div>
        <div class="attribute-form-group">
            <div class="attribute-form-group-l">描述：</div>
            <div class="attribute-form-group-r"><input type="text" name="remark"
                                                       ng-model="unitCaseParam.remark"></div>
            <div class="clear"></div>
        </div>

        <div ng-if="unitCaseParam.dataType!='Object'" class="attribute-form-group">
            <div class="attribute-form-group-l">参数值：</div>
            <div class="attribute-form-group-r">
                <textarea cols="" rows="3" name="param" ng-model="unitCaseParam.param" class="ng-pristine ng-valid"></textarea>
            </div>
            <div class="clear"></div>
        </div>
        <input  ng-if="unitCaseParam.dataType=='Object'" type="hidden" name="param" ng-model="unitCaseParam.param">
        <div class="tck-line"></div>
        <div class="tck-b">
            <button class="engine-btn-default" type="button" ng-click="submit()" pg-per="{{packageId}}|1" pg-sta="{{all.status}}|0">确定</button>
            <button class="engine-btn-default" type="button" ng-click="cancel()">取消</button>
        </div>
    </form>
</div>
</body>
</html>